//
//  GenerateQRCodeViewController.m
//  二维码综合案例
//
//  Created by Guo Rui on 2017/10/23.
//  Copyright © 2017年 GR Harry. All rights reserved.
//

#import "GenerateQRCodeViewController.h"
#import <CoreImage/CoreImage.h>
#import "QRCodeTool.h"

@interface GenerateQRCodeViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *qrImageView;
@property (weak, nonatomic) IBOutlet UITextView *inputTextView;

@end

@implementation GenerateQRCodeViewController

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    self.qrImageView.image = [QRCodeTool generatorQRCodeWithContent:self.inputTextView.text centerImage:nil];
}



@end
